package com.yixun.qfbao.dao.impl;

/**
 * @author zilong.liu
 * @date 2021-01-04
 * @desc 
 * 		员工部门二维码记录表
 */
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yixun.qfbao.dao.PartnerDeptQrcodeDao;
import com.yixun.qfbao.mapper.PartnerInfoMapper;
import com.yixun.qfbao.model.PartnerInfo;
import com.yixun.qfbao.xf.mapper.PartnerDeptQrcodeMappper;
import com.yixun.qfbao.xf.model.PartnerDeptQrCode;

/**
 * 
 * @author zilong.liu
 * @date 2020-12-31
 *
 */
@Service("partnerDeptQrcodeDao")
public class PartnerDeptQrcodeDaoImpl implements PartnerDeptQrcodeDao {

	@Autowired
	PartnerDeptQrcodeMappper partnerDeptQrcodeMappper;
	
	@Autowired
	PartnerInfoMapper partnerInfoMapper;

	/**
	 * 根据人员ID，部门ID查询对应的二维码链接
	 * @param partnerDeptQrcode
	 * @return
	 */
	@Override
	public PartnerDeptQrCode selectByPartnerIdAndDeptId(PartnerDeptQrCode partnerDeptQrcode) {
		return partnerDeptQrcodeMappper.selectByPartnerIdAndDeptId(partnerDeptQrcode);
	}
	
	/**
	 * 新增
	 * @param partnerDeptQrcode
	 * @return
	 */
	@Override
	public int add(PartnerDeptQrCode partnerDeptQrcode) {
		return partnerDeptQrcodeMappper.add(partnerDeptQrcode);
	}
	
}